NDBaI • Normalized Difference Bareness Index

NDBaI – Normalized Difference Bareness Index

NDBaI is a thermal–SWIR based index designed to highlight bare soil and dry exposed surfaces, and to help separate bare land from vegetation, water, and built-up areas using medium–resolution satellite data such as Landsat 8/9.

Bare soil mapping
Urban–rural transition
Land degradation & drought
Landsat 8/9 • SWIR1 & TIR

1. What is NDBaI and why is it useful?

The Normalized Difference Bareness Index (NDBaI) exploits the different radiative behaviour of bare soil versus other land covers in short-wave infrared (SWIR1) and thermal infrared (TIR) bands. Bare soil tends to have higher radiance in the thermal band compared to vegetated or water surfaces.

General formula:
NDBaI = (SWIR1 - TIR) / (SWIR1 + TIR)

The index is normalized between approximately -1 and +1. Higher positive values generally correspond to bare and dry surfaces, while lower or negative values are more associated with vegetation, moist soil, or water.

Typical applications

  • Mapping bare soil areas during agricultural fallow periods.
  • Discriminating between bare soil, urban/built-up, and vegetated surfaces.
  • Supporting land degradation and desertification studies.
  • Providing an auxiliary variable for LST–land cover analysis.
Bare soil / bareness Semi-arid & arid environments Thermal–SWIR synergy

2. Data & Bands for NDBaI

Landsat 8/9 OLI/TIRS (recommended)

Use surface reflectance or emissive products with SWIR1 and TIR bands:

  • SWIR1: B6 (Landsat 8/9 OLI)
  • TIR (Thermal Infrared): B10 (Landsat 8/9 TIRS, 100 m resampled to 30 m)

Good practice

  • Filter scenes by cloud cover and use appropriate QA/cloud masks.
  • Prefer surface reflectance products with thermal band properly calibrated.
  • Clip to a well-defined area of interest (AOI) to minimize unnecessary processing.
  • Combine with indices like NDVI, NDBI, or MNDWI for more robust land cover classification.

3. Interpreting NDBaI values

Interpretation always depends on the region and atmospheric/surface conditions, but a typical qualitative pattern can be:

  • NDBaI > 0 → predominantly bare soil / dry exposed surfaces.
  • ~ -0.2 to 0 → may indicate buildup or mixed bare–built areas.
  • < -0.25 → often associated with vegetation.
  • < -0.65 → may correspond to water bodies or very moist surfaces.

These ranges are not universal thresholds; they should be calibrated against reference samples or land-cover maps for each study area.

Tips

  • Use histograms and scatter plots (e.g., NDBaI vs NDVI) to refine thresholds.
  • Combine with ground truth or high-resolution imagery for accurate class boundaries.

4. Google Earth Engine code (Landsat 8/9 – NDBaI)

Draw your AOI (polygon) in the GEE Code Editor and name it geometry, then paste & run:



// NDBaI – Normalized Difference Bareness Index (Landsat 8/9)
// --------------------------------------------------------
// 1) Define area of interest (AOI)
// Draw a polygon in the Code Editor and rename it to "geometry"
var roi = geometry;

// 2) Date range
var startDate = '2020-01-01';
var endDate   = '2020-12-31';

// 3) Load Landsat 8/9 Surface Reflectance collection
//   - Use USGS Landsat 8/9 Collection 2 SR
var l8 = ee.ImageCollection('LANDSAT/LC08/C02/T1_L2')
  .filterBounds(roi)
  .filterDate(startDate, endDate)
  .filter(ee.Filter.lt('CLOUD_COVER', 20));

// 4) Function to convert DN to TOA/reflectance-like values
// For simplicity we use the scaled SR bands and TIR brightness temperature.
function prepL8(img) {
  // Scale reflectance bands (0.0000275 * DN - 0.2) if needed
  // but Collection 2 SR already provides surface reflectance
  // in bands like SR_Bx, and TIR in ST_B10 (Kelvin).
  var sr = img.select(['SR_B6']);      // SWIR1 (band 6)
  var tir = img.select(['ST_B10']);    // Thermal band (brightness temperature)

  // Normalize TIR to approx 0–1 by simple min/max scaling (optional, analysis dependent)
  var tirMin = 250;   // K (example)
  var tirMax = 330;   // K (example)
  var tirNorm = tir.subtract(tirMin).divide(tirMax - tirMin).clamp(0, 1)
    .rename('TIR_norm');

  // Ensure SWIR1 is scaled similarly (Collection 2 SR is typically 0–10000)
  var swir1 = sr.multiply(0.0001).rename('SWIR1');

  return swir1.addBands(tirNorm)
              .copyProperties(img, img.propertyNames());
}

// 5) Prepare collection
var l8Prep = l8.map(prepL8);

// 6) Create median composite
var composite = l8Prep.median().clip(roi);

// 7) Compute NDBaI
// NDBaI = (SWIR1 - TIR) / (SWIR1 + TIR)
var swir1 = composite.select('SWIR1');
var tirN  = composite.select('TIR_norm');

var ndbaI = swir1.subtract(tirN)
                .divide(swir1.add(tirN))
                .rename('NDBaI');

// 8) Visualization parameters
var ndbaIVis = {
  min: -0.6,
  max:  0.6,
  palette: [
    '#3132a8', // low (water / moist)
    '#2a9df4',
    '#38bdf8',
    '#facc15',
    '#f97316',
    '#b91c1c'  // very high bareness
  ]
};

// Center map and add layer
Map.centerObject(roi, 9);
Map.addLayer(ndbaI, ndbaIVis, 'NDBaI (Landsat 8/9)', true);

// Optionally add a true color composite for context
var rgb = l8
  .filterBounds(roi)
  .filterDate(startDate, endDate)
  .filter(ee.Filter.lt('CLOUD_COVER', 20))
  .median()
  .select(['SR_B4','SR_B3','SR_B2']) // Red, Green, Blue
  .multiply(0.0001)
  .clip(roi);

Map.addLayer(rgb, {min:0, max:0.3}, 'True Color (RGB)', false);

// 9) Export NDBaI as GeoTIFF to Google Drive
Export.image.toDrive({
  image: ndbaI,
  description: 'NDBaI_L8_Export',
  fileNamePrefix: 'NDBaI_L8',
  region: roi,
  scale: 30,
  maxPixels: 1e13
});